-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Add docs for reworked Fivetran API #26026
base: maxime/move-fivetran-docs-to-legacy-page
Are you sure you want to change the base?
[docs] Add docs for reworked Fivetran API #26026
Conversation
FivetranWorkspaceData
to FivetranConnectorTableProps
method
#25797
f42cebd
to
c01caf8
Compare
a0b8000
to
6aa71f2
Compare
c01caf8
to
9e707b8
Compare
6aa71f2
to
7a4fa77
Compare
9e707b8
to
d14c6d2
Compare
7a4fa77
to
3c894d1
Compare
d14c6d2
to
ad961a8
Compare
3c894d1
to
b2a5a00
Compare
ad961a8
to
66a92e1
Compare
b2a5a00
to
37b15c7
Compare
66a92e1
to
7cc3bc7
Compare
37b15c7
to
937ca4a
Compare
3d3a4ff
to
047b33d
Compare
de0b894
to
489b75a
Compare
047b33d
to
dea1be3
Compare
489b75a
to
bc55b9b
Compare
dea1be3
to
27ed743
Compare
bc55b9b
to
e7e3d18
Compare
27ed743
to
bf54e46
Compare
e7e3d18
to
a7794fb
Compare
bf54e46
to
68a881e
Compare
a7794fb
to
3dd795c
Compare
68a881e
to
e67667f
Compare
yield from fivetran.sync_and_poll(context=context) | ||
|
||
|
||
# Alternatively, when creating all assets definitions for the Fivetran workspace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grammar here seems a bit off
|
||
fivetran_specs = load_fivetran_asset_specs(fivetran_workspace) | ||
defs = dg.Definitions( | ||
assets=[*fivetran_specs], resources={"fivetran": fivetran_workspace} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be able to just fivetran_specs, no need for splat operator right
) | ||
|
||
|
||
# Creating assets definition for a given connector using the `@fivetran_assets` decorator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment is a bit redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python files have hyphenated names, let's fix that.
Additionally, I think the structuring here is a bit weird. We should probably lead with build_fivetran_assets_...
since that's the most straightforward way. Then, you can talk about "customizing execution functionality" and go through using the other APIs.
A few additional comments as well.
|
||
By default, Dagster will generate asset specs for each Fivetran asset and populate default metadata. You can further customize asset properties by passing a custom <PyObject module="dagster_fivetran" object="DagsterFivetranTranslator" /> subclass to the <PyObject module="dagster_fivetran" method="load_fivetran_asset_specs" /> function, the <PyObject module="dagster_fivetran" method="fivetran_assets" /> decorator or the <PyObject module="dagster_fivetran" method="build_fivetran_assets_definitions" /> factory. | ||
|
||
```python file=/integrations/fivetran/customize-fivetran-asset-defs.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole code snippet feels really long, can we make use of startbefore
and endafter
to trim this down to only the relevant bits?
Summary & Motivation
As title
How I Tested These Changes
See preview